package presenters;

import android.view.View;
import views.IListView;

/**
 * This is the admin List presenter. It interfaces with the model and viewer
 * 
 * @author Stephen
 * 
 */

public class AdminListPresenter {

	/** Admin list's view */
	private final IListView myView;

	/**
	 * A constructor that creates the AdminListPresenter
	 * 
	 * @param view
	 *            - the view that interfaces with this
	 */
	public AdminListPresenter(IListView view) {
		myView = view;
	}

	/**
	 * When exit is clicked
	 * 
	 * @param source
	 *            - the source used
	 */
	public void onExitAdminClick(View source) {
		myView.advance(source);
	}

}